package com.aimosheng.main.activity;

import android.content.Context;
import android.content.Intent;

import com.aimosheng.common.activity.AbsActivity;
import com.aimosheng.main.R;
import com.mob.adsdk.WebFragment;

/**
 * @ClassName: TaskCenterActivity
 * @Author: wangjiang
 * @CreateDate: 2021/6/18 9:49
 * ---------------------------------------
 * @Description:
 *          1.任务中心
 **/
public class TaskCenterActivity extends AbsActivity {

    private static final String TASK_URL = "https://squirrel.kxbwmedia.com/ditch/task?union_id=10188";

    public static void forward(Context context) {
        Intent intent = new Intent(context, TaskCenterActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_task_center;
    }


    @Override
    protected void main() {
        super.main();
        WebFragment fragment = WebFragment.newInstance(TASK_URL);
        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.container, fragment)
                .commitNowAllowingStateLoss();
    }
}
